<?php
include './kuaidi/function.php';
//var_dump($array);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>快递查询-阿Q查询</title>
<meta name="keywords" content="快递查询">
<meta name="description" content="快递查询">
<script language="javascript" src="http://player.baidu.com/lib/js/jquery-1.5.min.js" charset="utf-8"></script>
<script language="javascript" src="./kuaidi/tpl/home.js?0413" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./kuaidi/tpl/style.css">
</head>
<body>
<div class="wrapper">
	<div class="logo">
    	<a href="./"><img src="kuaidi/tpl/logo.gif" align="快递查询"/></a>
    </div>
    <div class="fm w">
    	<div id="select" lang="" onclick="More();">请选择快递公司</div>
        <form name="form" class="form" onsubmit="return Ajax('ps/sug','pssubmit');"><input type="text" name="kw" id="kw" maxlength="30" value="2728435536" onfocus="this.value='';"><span><input type=submit value="查询一下" class="btn" onmousedown="this.className='btn btn_h'" onmouseout="this.className='btn'"></span></form>
    </div>
     <div class="cy w">
        <span>常用：</span><a href="javascript:void(0)" onclick="Type('<?php echo $array['data_s'][0][0]?>','<?php echo $array['data_s'][0][1]?>','<?php echo $array['data_s'][0][2]?>');"><?php echo $array['data_s'][0][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_e'][0][0]?>','<?php echo $array['data_e'][0][1]?>','<?php echo $array['data_e'][0][2]?>');"><?php echo $array['data_e'][0][1]?></a>&nbsp;
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_s'][1][0]?>','<?php echo $array['data_s'][1][1]?>','<?php echo $array['data_s'][1][2]?>');"><?php echo $array['data_s'][1][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_y'][0][0]?>','<?php echo $array['data_y'][0][1]?>','<?php echo $array['data_y'][0][2]?>');"><?php echo $array['data_y'][0][1]?></a> 
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_z'][0][0]?>','<?php echo $array['data_z'][0][1]?>','<?php echo $array['data_z'][0][2]?>');"><?php echo $array['data_z'][0][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_r'][0][0]?>','<?php echo $array['data_r'][0][1]?>','<?php echo $array['data_r'][0][2]?>');"><?php echo $array['data_r'][0][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_y'][1][0]?>','<?php echo $array['data_y'][1][1]?>','<?php echo $array['data_y'][1][2]?>');"><?php echo $array['data_y'][1][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_t'][0][0]?>','<?php echo $array['data_t'][0][1]?>','<?php echo $array['data_t'][0][2]?>');"><?php echo $array['data_t'][0][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_h'][0][0]?>','<?php echo $array['data_h'][0][1]?>','<?php echo $array['data_h'][0][2]?>');"><?php echo $array['data_h'][0][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_q'][0][0]?>','<?php echo $array['data_q'][0][1]?>','<?php echo $array['data_q'][0][2]?>');"><?php echo $array['data_q'][0][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_z'][1][0]?>','<?php echo $array['data_z'][1][1]?>','<?php echo $array['data_z'][1][2]?>');"><?php echo $array['data_z'][1][1]?></a>
        <a href="javascript:void(0)" onclick="Type('<?php echo $array['data_d'][0][0]?>','<?php echo $array['data_d'][0][1]?>','<?php echo $array['data_d'][0][2]?>');"><?php echo $array['data_d'][0][1]?></a>
        <a href="javascript:void(0)" onclick="More();" id="more">更多>></a>
    </div>
    <ul id="type" class="w">
    	<?php
		$arr_letter = array('a','b','c','d','e','f','g','h','j','k','l','n','q','r','s','t','u','x','y','z');
		foreach($arr_letter as $letter){
			echo '<li><span>'.strtoupper($letter).'</span>';
			foreach($array['data_'.$letter.''] as $key=>$value){
				echo '<a href="javascript:void(0)" onclick="Type(\''.$value[0].'\',\''.$value[1].'\',\''.$value[2].'\');">'.$value[1].'</a>&nbsp;&nbsp;';
			}			
			echo '</li>';
		}
		?>
    </ul>   
    <ul id="status" class="w"></ul>
    <div class="footer">©2013 www.aq8.cc <a href="http://www.miibeian.gov.cn" target="_blank">晋ICP备12000912号-1</a></div>
</div>
</body>
</html>
<!--<li><span>A</span><a href="javascript:void(0)" onclick="Type('shentong','申通','400-889-5543');">申通</a></li> -->